2 using System.Collections.Generic;
5 using Microsoft.Xna.Framework;
6 using Microsoft.Xna.Framework.Graphics;
8 namespace SuperPolarity
10 static class ScreenManager
12 static Stack<Screen> Screens;
13 static SuperPolarity Game;
15 static ScreenManager()
17 Screens = new Stack<Screen>();
20 static public void Push(Screen screen)
25 static public void Pop()
30 static public void Update(GameTime gameTime)
32 Screens.Peek().Update(gameTime);
35 static public void Draw(SpriteBatch spriteBatch)
37 foreach (Screen screen in Screens)
39 screen.Draw(spriteBatch);
43 internal static void SetGame(SuperPolarity game)